package com.gopay.remote.riskcontrol.vo;

import java.io.Serializable;

/**
 * 风控调用结果实体类
 * Created by Light on 2016/7/28.
 */
public class RiskControlResult implements Serializable {

    public static final RiskControlResult DEFAULT = new RiskControlResult(true, false);

    public static final RiskControlResult DEFAULT_REFUSE = new RiskControlResult(true, true);

    private String errCode;
    private String errMsg;
    private String refuseReason;
    private Boolean isRefuse = false;
    private Boolean isCallSuccess = false;

    public RiskControlResult(){
        super();
    }

    public RiskControlResult(Boolean isCallSuccess, Boolean isRefuse){
        this.isCallSuccess = isCallSuccess;
        this.isRefuse = isRefuse;
    }

    public String getErrCode() {
        return errCode;
    }

    public void setErrCode(String errCode) {
        this.errCode = errCode;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }

    public String getRefuseReason() {
        return refuseReason;
    }

    public void setRefuseReason(String refuseReason) {
        this.refuseReason = refuseReason;
    }

    public Boolean getRefuse() {
        return isRefuse;
    }

    public void setRefuse(Boolean refuse) {
        isRefuse = refuse;
    }

    public Boolean getCallSuccess() {
        return isCallSuccess;
    }

    public void setCallSuccess(Boolean callSuccess) {
        isCallSuccess = callSuccess;
    }

    @Override
    public String toString() {
        return "RiskControlResult{" +
                "errCode='" + errCode + '\'' +
                ", errMsg='" + errMsg + '\'' +
                ", refuseReason='" + refuseReason + '\'' +
                ", isRefuse=" + isRefuse +
                ", isCallSuccess=" + isCallSuccess +
                '}';
    }
}
